home *** CD-ROM | disk | FTP | other *** search
/ AMOS PD CD / amospdcd.iso / aminet / amoslist0993.lzh / AMOSLIST2 / 000053_amos-request@svcs1.digex.net_Wed Sep 1 21:02:22 1993.msg < prev    next >
Internet Message Format  |  1993-09-03  |  4KB

  1. Received: from nextsun.INS.CWRU.Edu by access.digex.net with SMTP id AA22377
  2.   (5.65c/IDA-1.4.4 for <mcox@access.digex.com>); Wed, 1 Sep 1993 21:02:18 -0400
  3. Received: from svcs1.digex.net by nextsun.INS.CWRU.Edu with SMTP (5.65b+ida+/CWRU-1.5.2-freenet-gw)
  4.     id AA22606; Wed, 1 Sep 93 21:01:55 -0400 (from amos-request@svcs1.digex.net for mcox@access.digex.com)
  5. Received: by svcs1.digex.net id AA13472
  6.   (5.65c/IDA-1.4.4 for amos-list-out); Wed, 1 Sep 1993 20:44:14 -0400
  7. Received: from access.digex.net by svcs1.digex.net with SMTP id AA13468
  8.   (5.65c/IDA-1.4.4 for <amos-list@svcs1.digex.net>); Wed, 1 Sep 1993 20:44:11 -0400
  9. Received: from wraith.cs.uow.edu.au by access.digex.net with SMTP id AA19459
  10.   (5.65c/IDA-1.4.4 for <amos-list@access.digex.net>); Wed, 1 Sep 1993 20:44:04 -0400
  11. Received: from topaz.cs.uow.edu.au by wraith.cs.uow.edu.au with SMTP
  12.     (5.65c/IDA-1.4.4); id AA17282; Thu, 2 Sep 1993 10:43:46 +1000
  13.     (from u9147063@cs.uow.edu.au for <amos-list@access.digex.net>)
  14. Received: by topaz.cs.uow.edu.au id AA25434
  15.   (5.65c/IDA-CLIENT for amos-list@access.digex.net); Thu, 2 Sep 1993 10:43:44 +1000
  16. From: Richard Barry Ling <u9147063@cs.uow.edu.au>
  17. Message-Id: <199309020043.AA25434@topaz.cs.uow.edu.au>
  18. Subject: Re: Jumping/flicker
  19. To: amos-list@access.digex.net (AMOS User group)
  20. Date: Thu, 2 Sep 1993 10:43:41 +1000 (EST)
  21. Mime-Version: 1.0
  22. Content-Type: text/plain; charset=US-ASCII
  23. Content-Transfer-Encoding: 7bit
  24. Content-Length: 2324      
  25. Status: RO
  26.  
  27. Forwarded message:
  28. > From amos-request@svcs1.digex.net Wed Sep  1 21:58:12 1993 +1000
  29. > Date: Wed, 01 Sep 1993 06:44:39 -0400 (EDT)
  30. > From: sfmcnally@BIX.com
  31. > Subject: Re: Jumping/flicker
  32. > In-Reply-To: <9309010339.AA19739@elms.concept.com.au>
  33. > To: Tom Plackowski <tom@elms.concept.com.au>
  34. > Cc: amos-list@access.digex.net
  35. > Message-Id: <9309010644.memo.74751@BIX.com>
  36. > Content-Transfer-Encoding: 7BIT
  37. > X-Cosy-To: Tom Plackowski <tom@elms.concept.com.au>
  38. > X-Cosy-Cc: amos-list@access.digex.com
  39. > Ahh, try the wait vbl before the screen swap.
  40. > You have to get the scan line to the vbl before you swap the screens, or parts
  41. > will probly be different as they are swapped in the middle of the screen update.
  42. > ;)
  43. > Seumas
  44.  
  45. As far as I know, the correct order is
  46.  
  47.      Do
  48.     ... your drawing ...
  49.     Screen Swap
  50.     Wait Vbl
  51.      Loop
  52.  
  53. I've always used this for flicker-free drawing, and the majority of other
  54. programs I have seen do as well.  The Screen Swap command simply exchanges
  55. the copper list pointers for the physical and logical screens.  The copper
  56. is already executing the list for the current physical screen, so you don't
  57. actually interrupt the display at the exact instant you call Screen Swap:
  58. the change only happens at the start of the next frame.  However, drawing
  59. commands are immediately affected - they are directed to the current logical
  60. screen.  So if you do a screen swap, then draw immediately, your display
  61. will flicker like a bastard, since your logical screen is halfway through
  62. being displayed!  If you follow your Screen Swap with a Wait Vbl, you wait
  63. until the current display is finished.  Then the copper pointer is updated
  64. from your new physical screen and your logical screen flips to the back, and
  65. you can start drawing over again.
  66.  
  67. For the flicker-free bob animation, try this:
  68.  
  69.     Screen open whatever
  70.     Double Buffer : Bob Update Off
  71.     For i = 1 to however many images
  72.        Bob 0, x, y, i
  73.        Update
  74.        Screen Swap
  75.        Wait Vbl
  76.     Next
  77.  
  78. I can't remember off the top of my head whether Update does a screen swap or
  79. not.  If it does try leaving out the screen swap command.
  80.  
  81. RL.
  82.  
  83. ==========================  Generating: .signature
  84.    Richard Ling             - colour analysis... complete
  85.  u9147063@cs.uow.edu.au     - clipping... complete
  86. ==========================  - rendering... 37.6%